<?php

/* @var $model \app\models\Post */
/* @var $this \yii\web\View */

use app\models\Comment;
use yii\helpers\Url;

?>
<footer class="ui-footer ui-footer-btn">
    <section class="ui-input-wrap ui-border-t">
        <div class="ui-input ui-border-radius">
            <input id="<?= Url::to(['comment/save', 'own' => Comment::OWN_POST, 'own_id' => $model->id, 'ref' => Url::to('', TRUE)]); ?>" type="text" name="comment_content" value="" placeholder="写评论">
        </div>
        <div class="btn-group">
            <span class="ui-badge-wrap">
                <i class="iconfont">&#xe638;</i>
                <div data-href="<?= Url::to(['comment', 'id' => $model->id]); ?>" class="ui-badge-cornernum"><?= $model->comments; ?></div>
            </span>
            <span><i id="<?= Url::to(['user/favorite', 'own_id' => $model->id, 'own' => Comment::OWN_POST]); ?>" class="iconfont ico-fav links<?= $model->favorite ? ' light' : ''; ?>"></i></span>
            <span><i class="iconfont share">&#xe600;</i></span>
        </div>
    </section>
</footer>